Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic from bare string default #53

Merged
merged 5 commits into from
Sep 14, 2023
Merged

Fix panic from bare string default #53

merged 5 commits into from
Sep 14, 2023

Conversation

jdowni000
Copy link
Contributor

Changes introduced with this PR

This is a fix for Issue

This will attempt to fix all strings ( bare, single, double ) that cause an error from not being a valid json string being passed for a default value of type string. If it fails after an attempt to fix, it will combine the original error with a detail explanation of why it could not fix it. This will reduce panic errors from formatting issues dramatically.


By contributing to this repository, I agree to the contribution guidelines.

@jdowni000 jdowni000 reopened this Sep 12, 2023
@jdowni000 jdowni000 closed this Sep 12, 2023
@jdowni000 jdowni000 reopened this Sep 12, 2023
Copy link
Contributor

@jaredoconnell jaredoconnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. This will make it a little easier to use.

@jdowni000 jdowni000 merged commit 8194670 into main Sep 14, 2023
3 checks passed
@jdowni000 jdowni000 deleted the default_value branch September 14, 2023 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants